package cn.com.sbell.vss.util;

public class RegisterResponse {
	private String resultCode;

	private Integer expires;

	private String username;

	private String password;

	private int times;

	private String[] diskPath;

	private int cpuLowThreshold;

	private int memoryLowThreshold;

	private int[] diskLowThreshold;

	private int cpuHighThreshold;

	private int memoryHighThreshold;

	private int[] diskHighThreshold;

	private long interval;

	private boolean reportEnabled;

	private String asURL;
	
	public String getAsURL() {
		return asURL;
	}

	public void setAsURL(String asURL) {
		this.asURL = asURL;
	}

	public Integer getExpires() {
		return expires;
	}

	public void setExpires(Integer expires) {
		this.expires = expires;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public int getCpuHighThreshold() {
		return cpuHighThreshold;
	}

	public void setCpuHighThreshold(int cpuHighThreshold) {
		this.cpuHighThreshold = cpuHighThreshold;
	}

	public int getCpuLowThreshold() {
		return cpuLowThreshold;
	}

	public void setCpuLowThreshold(int cpuLowThreshold) {
		this.cpuLowThreshold = cpuLowThreshold;
	}

	public int[] getDiskHighThreshold() {
		return diskHighThreshold;
	}

	public void setDiskHighThreshold(int[] diskHighThreshold) {
		this.diskHighThreshold = diskHighThreshold;
	}

	public int[] getDiskLowThreshold() {
		return diskLowThreshold;
	}

	public void setDiskLowThreshold(int[] diskLowThreshold) {
		this.diskLowThreshold = diskLowThreshold;
	}

	public String[] getDiskPath() {
		return diskPath;
	}

	public void setDiskPath(String[] diskPath) {
		this.diskPath = diskPath;
	}

	public int getMemoryHighThreshold() {
		return memoryHighThreshold;
	}

	public void setMemoryHighThreshold(int memoryHighThreshold) {
		this.memoryHighThreshold = memoryHighThreshold;
	}

	public int getMemoryLowThreshold() {
		return memoryLowThreshold;
	}

	public void setMemoryLowThreshold(int memoryLowThreshold) {
		this.memoryLowThreshold = memoryLowThreshold;
	}

	public int getTimes() {
		return times;
	}

	public void setTimes(int times) {
		this.times = times;
	}

	public long getInterval() {
		return interval;
	}

	public void setInterval(long interval) {
		this.interval = interval;
	}

	public boolean isReportEnabled() {
		return reportEnabled;
	}

	public void setReportEnabled(boolean reportEnabled) {
		this.reportEnabled = reportEnabled;
	}
	
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("\nExpires=");
		sb.append(this.expires);
		sb.append("\nTimes=");
		sb.append(this.times);
		sb.append("\nCpuLowThreshold=");
		sb.append(this.cpuLowThreshold);
		sb.append("\nCpuHighThreshold=");
		sb.append(this.cpuHighThreshold);
		sb.append("\nMemoryHighThreshold=");
		sb.append(this.memoryHighThreshold);
		sb.append("\nMemoryLowThreshold=");
		sb.append(this.memoryLowThreshold);
		sb.append("\nInterval=");
		sb.append(this.interval);
		sb.append("\nReportEnabled=");
		sb.append(this.reportEnabled);
		if(this.diskHighThreshold!=null){
			for (int i = 0; i < diskHighThreshold.length; i++) {
				sb.append("\nDiskHighThreshold=");
				sb.append(diskHighThreshold[i]);
			}
		}
		if(this.diskLowThreshold!=null){
			for (int i = 0; i < diskLowThreshold.length; i++) {
				sb.append("\nDiskLowThreshold=");
				sb.append(diskLowThreshold[i]);
			}
		}
		return sb.toString();
	}

}
